/* === v-toast === */

.v-toast {
  box-shadow: @toast-shadow;
  width: auto;
  padding: @toast-padding;
  box-sizing: border-box;
  border-radius: @border-radius-small;
  position: fixed;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  background-color: @white;
  transition: opacity 0.3s, transform .4s;
  overflow: hidden;
  &__group {
    margin-left: 0;
    position: relative;
    height: 20px;
    line-height: 20px;
    display: flex;
    align-items: center;
    p {
      font-size: @font-size-base;
      margin: 0;
      white-space: nowrap;
      color: @toast-content-color;
      text-align: justify;
    }
    &.with-closebtn {
      p {
        margin: 0 25px 0 0;
      }
    }
  }
  &__icon {
    vertical-align: middle;
    margin-right: 4px;
  }
  &__closeBtn {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    color: @toast-close-color;
    font-size: @font-size-base;
    text-align: right;
    &:hover {
      color: @toast-close-hover-color;
    }
  }
  [class*="v-icon-"] {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 20px;
  }
  .v-icon-check {
    color: @toast-success-color;
  }
  .v-icon-error {
    color: @toast-danger-color;
  }
  .v-icon-info {
    color: @toast-info-color;
  }
  .v-icon-warning {
    color: @toast-warning-color;
  }
}

.v-toast-fade-enter,
.v-toast-fade-leave-active {
  opacity: 0;
  transform: translate(-50%, -100%);
}
